package com.day18.ex03;

import java.io.*;

public class CopyJavaDemo01 {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr=new InputStreamReader(new FileInputStream("myCharSream\\ConversionSreamDemo.java"));
        OutputStreamWriter osw=new OutputStreamWriter(new FileOutputStream("myCharSream\\ConversionSreamDemo01.java"));
        char[] chs=new char[1024];
        int len;
        while ((len=isr.read(chs))!=-1){
            osw.write(chs,0,len);
        }
        osw.close();
        isr.close();
    }
}
